@import "variables";


html {
  height: 100%;
  box-sizing: border-box;
}

body {
  height: 100%;
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: $--text-color
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  color: inherit;
  text-decoration: none;
}

.clearfix {
  &:after {
    content: "";
    height: 0;
    visibility: hidden;
    display: block;
    font-size: 0;
    clear: both;
  }
}

[no-select] {
  user-select: none;
}

.el-menu--popup{
  min-width: 160px;
  text-align: center;
}

.layout-admin {
  .layout-header {
    position: fixed;
    top: 0;
    right: 0;
    width: calc(100% - #{$--aside-width});
    height: $--header-height;
    border-bottom: 1px solid #e3e3e3;

    .el-menu.el-menu--horizontal {
      height: inherit;
      border-bottom: 0 none;
    }

    .el-menu--horizontal > .el-submenu .el-submenu__title {
      height: calc(#{$--header-height} - 1px);
      line-height: calc(#{$--header-height} - 1px);
      border-bottom: 0 none;
    }

    .header-right {
      position: relative;
      float: right;
      height: 100%;
    }
  }

  .layout-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: $--aside-width;
    height: 100%;
    background-color: $--navbar-background-color;
  }

  .layout-main {
    position: absolute;
    top: $--header-height;
    left: $--aside-width;
    right: 0;
    bottom: 0;
  }
}